package org.annoflow.filter.auth;

import org.annoflow.audit.ContextTracker;
import org.annoflow.audit.Logger;
import org.annoflow.filter.FilterPoint;

public class NewUserFilter implements FilterPoint {

	@Override
	public String getFilterCode() {
		
		return "org.annoflow.filter.auth.NewUserFilter.logNewUser($$);";
	}
	public static void logNewUser(String userName,String password)
	{
		Logger.out(NewUserFilter.class.getName(), ContextTracker.getInstance().getFilterContext(), null, "Created new user: "+userName+":"+password);
	}
	@Override
	public String getReturnFilterCode() {
		// TODO Auto-generated method stub
		return null;
	}

}

